import GuestIndex from "@/components/guest/index";
import GuestAdd from '@/components/guest/add';
import GuestEdit from '@/components/guest/edit'
import { Outlet } from "react-router-dom";

const list=[
    {
        path:"index",
        component:GuestIndex,
        auth:true,
    },
    {
        path: 'add',
        component: GuestAdd,
        auth: true,
    },
    {
        path: 'edit',
        component: GuestEdit,
        auth: true,
    }
]

const layout=()=>{
    return(<><Outlet/></>)
}

const RouterList = [
    {
      path: '/guest',
      component: layout,
      children: list,
    }
  ]
  
  export default RouterList